package com.ddk.en.mongo.model.repository.log;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.IndexDirection;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;



/**
 * Created by yanhao on 2017/11/24.
 */
@Getter
@Setter
@Document(collection = "o2o_order_submit_log")
public class OrderSubmitLog {
    /**
     * 预交单 强制通过日志
     */

    @Id
    private String id;

    private String param;

    private String result;

    @Indexed
    private String idcard;

    @Indexed
    private Long orderId;

    @Indexed(direction = IndexDirection.DESCENDING)
    private Date submitTime;

    @Indexed
    private String orderFrom;
    //交单人 销售主管id
    private long saleKey;
}
